package xiaojun.JAVA.service;

import xiaojun.JAVA.domain.dto.BaseDto;
import xiaojun.JAVA.domain.emtity.BaseEntity;
import xiaojun.JAVA.domain.vo.Result;

/**
 * 业务层-通用业务接口
 *
 * @author 赖晓君
 * @since 2025/6/15  16:56
 */
public interface IBaseService<Entity extends BaseEntity,Dto extends BaseDto> {

    boolean existsById(int id);

    Entity findById(int id);

    Result list();

    Result create(Dto dto);

    Result updates(Dto dto,int id);
}
